function baseLayerPicker() {
    //定义ImageryProvider：
    var esriMap = new Cesium.ArcGisMapServerImageryProvider({
        url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
        enablePickFeatures: false
    });
    //设置ProviderViewModel：
    var esriMapModel = new Cesium.ProviderViewModel({
        name: '测试',
        iconUrl: Cesium.buildModuleUrl('/img/appleToolbar/calendar.png'),
        tooltip: '测试',
        creationFunction: function() {
            return esriMap;
        }
    });

    var localImageLayer = new Cesium.UrlTemplateImageryProvider({
        //tilingScheme : new Cesium.GeographicTilingScheme(),
        url: 'http://192.168.1.15:8080/map/file/img/TILEKEY/IMAGE/EPSG_3857/png/DOM_02_HaiNan/{z}/{x}/{y}?token=eyJhbGciOiJIUzI1NiJ9.eyJ0ZXJtdGltZSI6MTYyNDU1MDQwMDAwMCwic2VydmljZSI6IkRPTV8wMl9IYWlOYW4iLCJpcCI6IjE5Mi4xNjguMS4xMCIsInVzZXIiOiJ0ZXN0In0.hJvXFmq-R6d_Mn5T6d77hJ5RChZKdElFgFv9G-xPw_E', //服务地址
        //url: 'http://localhost:8080/map/file/img/TILEKEY/IMAGE/EPSG_3857/png/DOM_02_HaiNan/{z}/{x}/{y}?token=eyJhbGciOiJIUzI1NiJ9.eyJ0ZXJtdGltZSI6MTYyNDU1MDQwMDAwMCwic2VydmljZSI6IkRPTV8wMl9IYWlOYW4iLCJpcCI6IjE5Mi4xNjguMS4xMCIsInVzZXIiOiJ0ZXN0In0.hJvXFmq-R6d_Mn5T6d77hJ5RChZKdElFgFv9G-xPw_E' , //服务地址
    })
    var localMapModel = new Cesium.ProviderViewModel({
        name: '本地',
        iconUrl: Cesium.buildModuleUrl('/img/appleToolbar/calendar.png'),
        tooltip: '本地',
        creationFunction: function() {
            return localImageLayer;
        }
    });

    //影像
    var providerViewModels = viewer.baseLayerPicker.viewModel.imageryProviderViewModels;
    providerViewModels.push(localMapModel);
    providerViewModels.push(esriMapModel);
    viewer.baseLayerPicker.viewModel.imageryProviderViewModels = providerViewModels;

    //设置默认地图源
    //viewer.baseLayerPicker.viewModel.selectedImagery = viewer.baseLayerPicker.viewModel.imageryProviderViewModels[0];

    var localTerrainProvider = new Cesium.CesiumTerrainProvider({
        url: 'http://192.168.1.15:8080/map/file/wmts/bil/DSM_10_MeiLan/'
    })
    var localTerrainModel = new Cesium.ProviderViewModel({
        name: '本地',
        iconUrl: Cesium.buildModuleUrl('/img/appleToolbar/calendar.png'),
        tooltip: '本地',
        creationFunction: function() {
            return localTerrainProvider;
        }
    });

    var providerViewModels = viewer.baseLayerPicker.viewModel.terrainProviderViewModels;
    providerViewModels.push(localTerrainModel);
    viewer.baseLayerPicker.viewModel.terrainProviderViewModels = providerViewModels;

    //新增一个
    //var providerViewModels = viewer.baseLayerPicker.viewModel.imageryProviderViewModels;
    //providerViewModels.push(esriMapModel);
    //viewer.baseLayerPicker.viewModel.imageryProviderViewModels = providerViewModels;
}